<?php

/**
 * Description of Offer
 *
 * @author Kam
 */
class Application_Model_DbTable_Adv extends My_Db_Table {

    protected $_name = 'adv';
    protected $_primary = 'adv_id';

    /**
     * Nie sortuje po RAND() ani po niczym innym
     * @return Zend_Db_Select
     */
    public function selectActiveEntries() {
        $select = $this->select()
                ->from(array('a' => 'adv'))
                ->where('a.admin_active = 1')
        ;
        return $select;
    }

}
